<template>
  <div>
    <nav-header :headerTitle="'朋友圈文章广告转发教程'" :navBgColor="'#fff'"></nav-header>
    <section class="page">
      <div class="null16"></div>
      <div class="p-items">
        <div class="content">
          <div class="pih-img">
            <div class="content">
              <img src="@/assets/images/teach_tip.png" alt />
              <span>1</span>
            </div>
          </div>
          <div class="phi-div">领取文章广告任务后，app会自动复制广告文字。</div>
          <div class="null24"></div>
          <img
            class="phi-imgR"
            data-type="1"
            :src="show.a[0]?show.a[0]:this.defaultImg(1)"
            @error="errorImg"
            alt
          />
        </div>
      </div>
      <!-- end -->
      <div class="p-items">
        <div class="content">
          <div class="pih-img">
            <div class="content">
              <img src="@/assets/images/teach_tip.png" alt />
              <span>2</span>
            </div>
          </div>
          <div class="phi-div">点击转发广告去朋友圈，app会将文章自动带过来，你只需要将复制的广告文字正确粘贴，然后发布到朋友圈即可。如图所示：</div>
          <div class="null24"></div>
          <img
            class="phi-imgR"
            data-type="1"
            :src="show.a[1]?show.a[1]:this.defaultImg(1)"
            @error="errorImg"
            alt
          />
        </div>
      </div>
      <!-- end -->
      <div class="p-items">
        <div class="content">
          <div class="pih-img">
            <div class="content">
              <img src="@/assets/images/teach_tip.png" alt />
              <span>3</span>
            </div>
          </div>
          <div class="phi-div">如果文字，图片丢失或者不完整，请在任务页面手动去下载，如图所示的位置：</div>
          <div class="null24"></div>
          <img
            class="phi-imgR"
            data-type="1"
            :src="show.a[2]?show.a[2]:this.defaultImg(1)"
            @error="errorImg"
            alt
          />
        </div>
      </div>
      <!-- end -->
      <div class="p-items">
        <div class="content">
          <div class="pih-img">
            <div class="content">
              <img src="@/assets/images/teach_tip.png" alt />
              <span>4</span>
            </div>
          </div>
          <div
            class="phi-div"
          >任务完成后，请及时截图进行提交。在首页进行中的任务或者我的任务中查看任务，选择正确的截图，系统会自动上传。超过任务时间不提交，任务将会自动失败。</div>
          <div class="null24"></div>
          <img
            class="phi-imgR"
            data-type="1"
            :src="show.a[3]?show.a[3]:this.defaultImg(1)"
            @error="errorImg"
            alt
          />
        </div>
      </div>
      <!-- end -->
      <div class="p-items">
        <div class="content">
          <div class="pih-img">
            <div class="content">
              <img src="@/assets/images/teach_tip.png" alt />
              <span>5</span>
            </div>
          </div>
          <div class="phi-div">任务提交后，请等待平台进行审核。审核通过后，奖励会自动到账。</div>
          <div class="null24"></div>
          <img
            class="phi-imgR"
            data-type="1"
            :src="show.a[4]?show.a[4]:this.defaultImg(1)"
            @error="errorImg"
            alt
          />
        </div>
      </div>
      <!-- end -->
      <div class="p-items">
        <div class="content">
          <div class="pih-img">
            <div class="content">
              <img src="@/assets/images/teach_tip.png" alt />
              <span>6</span>
            </div>
          </div>
          <div class="phi-div">如果任务截图上传错误或者不符合要求，请按照提示修改图片。</div>
          <div class="null24"></div>
          <img
            class="phi-imgR"
            data-type="1"
            :src="show.a[5]?show.a[5]:this.defaultImg(1)"
            @error="errorImg"
            alt
          />
        </div>
      </div>
      <!-- end -->
    </section>
  </div>
</template>

<script>
import navHeader from "@/components/NavHeader";
import mixin from "@/utils/mixin";
export default {
  name: "friendArticle",
  mixins: [mixin],
  components: {
    navHeader
  },
  data() {
    return {
      show: {
        a: []
      }
    };
  },
  created() {},
  mounted() {
    this.init();
  },
  methods: {
    init: function() {
      //start
      let that = this;
      let srcArr = [
        "https://rmbang.oss-cn-shenzhen.aliyuncs.com/wap/friend/a1.png",
        "https://rmbang.oss-cn-shenzhen.aliyuncs.com/wap/friend/a2.png",
        "https://rmbang.oss-cn-shenzhen.aliyuncs.com/wap/friend/a3.png",
        "https://rmbang.oss-cn-shenzhen.aliyuncs.com/wap/friend/a4.png",
        "https://rmbang.oss-cn-shenzhen.aliyuncs.com/wap/friend/a5.png",
        "https://rmbang.oss-cn-shenzhen.aliyuncs.com/wap/friend/a6.png"
      ];
      that.loadImg(srcArr, function(imgArr) {
        that.show.a=imgArr;
      });
      //end
    }
  }
};
</script>
<style lang="scss" scoped>
.page {
  margin-top: 86px;
  .content {
    width: 100%;
    height: 100%;
    position: relative;
  }
  .null16 {
    width: 100%;
    height: 16px;
  }
  .null24 {
    width: 100%;
    height: 24px;
  }
  .p-items {
    padding: 32px 32px 32px 92px;
    .pih-img {
      width: 44px;
      height: 44px;
      position: absolute;
      left: -60px;
      top: 0px;
      img {
        width: 100%;
        height: 100%;
        position: absolute;
      }
      span {
        font-size: 30px;
        font-family: PingFangSC-Semibold;
        font-weight: bold;
        color: rgba(255, 255, 255, 1);
        position: absolute;
        left: 50%;
        margin-left: -8px;
        top: 1px;
      }
    }
    .phi-div {
      font-size: 32px;
      font-family: PingFangSC-Regular;
      font-weight: 500;
      color: rgba(48, 49, 51, 1);
      line-height: 45px;
    }
    .phi-imgR {
      width: 100%;
    }
  }
}
</style>
